package pe.com.bn.sach.domain;

import java.util.Date;

/**
 * MensajeId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class MensajeId implements java.io.Serializable {

	// Fields

	private Long idMsjeMen;
	private String deCrtaMsjeMen;
	private String deDetaMsjeMen;
	private String txAsntoMen;
	private Long tiEstdMen;
	private String idUsuaCreaMen;
	private Date feUsuaCreaMen;
	private String deTermCreaMen;
	private String idUsuaModiMen;
	private Date feUsuaModiMen;
	private String deTermModiMen;

	// Constructors

	/** default constructor */
	public MensajeId() {
	}

	/** minimal constructor */
	public MensajeId(Long idMsjeMen, String deCrtaMsjeMen,
			String deDetaMsjeMen, String txAsntoMen, Long tiEstdMen,
			String idUsuaCreaMen, Date feUsuaCreaMen, String deTermCreaMen) {
		this.idMsjeMen = idMsjeMen;
		this.deCrtaMsjeMen = deCrtaMsjeMen;
		this.deDetaMsjeMen = deDetaMsjeMen;
		this.txAsntoMen = txAsntoMen;
		this.tiEstdMen = tiEstdMen;
		this.idUsuaCreaMen = idUsuaCreaMen;
		this.feUsuaCreaMen = feUsuaCreaMen;
		this.deTermCreaMen = deTermCreaMen;
	}

	/** full constructor */
	public MensajeId(Long idMsjeMen, String deCrtaMsjeMen,
			String deDetaMsjeMen, String txAsntoMen, Long tiEstdMen,
			String idUsuaCreaMen, Date feUsuaCreaMen, String deTermCreaMen,
			String idUsuaModiMen, Date feUsuaModiMen, String deTermModiMen) {
		this.idMsjeMen = idMsjeMen;
		this.deCrtaMsjeMen = deCrtaMsjeMen;
		this.deDetaMsjeMen = deDetaMsjeMen;
		this.txAsntoMen = txAsntoMen;
		this.tiEstdMen = tiEstdMen;
		this.idUsuaCreaMen = idUsuaCreaMen;
		this.feUsuaCreaMen = feUsuaCreaMen;
		this.deTermCreaMen = deTermCreaMen;
		this.idUsuaModiMen = idUsuaModiMen;
		this.feUsuaModiMen = feUsuaModiMen;
		this.deTermModiMen = deTermModiMen;
	}

	// Property accessors

	public Long getIdMsjeMen() {
		return this.idMsjeMen;
	}

	public void setIdMsjeMen(Long idMsjeMen) {
		this.idMsjeMen = idMsjeMen;
	}

	public String getDeCrtaMsjeMen() {
		return this.deCrtaMsjeMen;
	}

	public void setDeCrtaMsjeMen(String deCrtaMsjeMen) {
		this.deCrtaMsjeMen = deCrtaMsjeMen;
	}

	public String getDeDetaMsjeMen() {
		return this.deDetaMsjeMen;
	}

	public void setDeDetaMsjeMen(String deDetaMsjeMen) {
		this.deDetaMsjeMen = deDetaMsjeMen;
	}

	public String getTxAsntoMen() {
		return this.txAsntoMen;
	}

	public void setTxAsntoMen(String txAsntoMen) {
		this.txAsntoMen = txAsntoMen;
	}

	public Long getTiEstdMen() {
		return this.tiEstdMen;
	}

	public void setTiEstdMen(Long tiEstdMen) {
		this.tiEstdMen = tiEstdMen;
	}

	public String getIdUsuaCreaMen() {
		return this.idUsuaCreaMen;
	}

	public void setIdUsuaCreaMen(String idUsuaCreaMen) {
		this.idUsuaCreaMen = idUsuaCreaMen;
	}

	public Date getFeUsuaCreaMen() {
		return this.feUsuaCreaMen;
	}

	public void setFeUsuaCreaMen(Date feUsuaCreaMen) {
		this.feUsuaCreaMen = feUsuaCreaMen;
	}

	public String getDeTermCreaMen() {
		return this.deTermCreaMen;
	}

	public void setDeTermCreaMen(String deTermCreaMen) {
		this.deTermCreaMen = deTermCreaMen;
	}

	public String getIdUsuaModiMen() {
		return this.idUsuaModiMen;
	}

	public void setIdUsuaModiMen(String idUsuaModiMen) {
		this.idUsuaModiMen = idUsuaModiMen;
	}

	public Date getFeUsuaModiMen() {
		return this.feUsuaModiMen;
	}

	public void setFeUsuaModiMen(Date feUsuaModiMen) {
		this.feUsuaModiMen = feUsuaModiMen;
	}

	public String getDeTermModiMen() {
		return this.deTermModiMen;
	}

	public void setDeTermModiMen(String deTermModiMen) {
		this.deTermModiMen = deTermModiMen;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof MensajeId))
			return false;
		MensajeId castOther = (MensajeId) other;

		return ((this.getIdMsjeMen() == castOther.getIdMsjeMen()) || (this
				.getIdMsjeMen() != null
				&& castOther.getIdMsjeMen() != null && this.getIdMsjeMen()
				.equals(castOther.getIdMsjeMen())))
				&& ((this.getDeCrtaMsjeMen() == castOther.getDeCrtaMsjeMen()) || (this
						.getDeCrtaMsjeMen() != null
						&& castOther.getDeCrtaMsjeMen() != null && this
						.getDeCrtaMsjeMen()
						.equals(castOther.getDeCrtaMsjeMen())))
				&& ((this.getDeDetaMsjeMen() == castOther.getDeDetaMsjeMen()) || (this
						.getDeDetaMsjeMen() != null
						&& castOther.getDeDetaMsjeMen() != null && this
						.getDeDetaMsjeMen()
						.equals(castOther.getDeDetaMsjeMen())))
				&& ((this.getTxAsntoMen() == castOther.getTxAsntoMen()) || (this
						.getTxAsntoMen() != null
						&& castOther.getTxAsntoMen() != null && this
						.getTxAsntoMen().equals(castOther.getTxAsntoMen())))
				&& ((this.getTiEstdMen() == castOther.getTiEstdMen()) || (this
						.getTiEstdMen() != null
						&& castOther.getTiEstdMen() != null && this
						.getTiEstdMen().equals(castOther.getTiEstdMen())))
				&& ((this.getIdUsuaCreaMen() == castOther.getIdUsuaCreaMen()) || (this
						.getIdUsuaCreaMen() != null
						&& castOther.getIdUsuaCreaMen() != null && this
						.getIdUsuaCreaMen()
						.equals(castOther.getIdUsuaCreaMen())))
				&& ((this.getFeUsuaCreaMen() == castOther.getFeUsuaCreaMen()) || (this
						.getFeUsuaCreaMen() != null
						&& castOther.getFeUsuaCreaMen() != null && this
						.getFeUsuaCreaMen()
						.equals(castOther.getFeUsuaCreaMen())))
				&& ((this.getDeTermCreaMen() == castOther.getDeTermCreaMen()) || (this
						.getDeTermCreaMen() != null
						&& castOther.getDeTermCreaMen() != null && this
						.getDeTermCreaMen()
						.equals(castOther.getDeTermCreaMen())))
				&& ((this.getIdUsuaModiMen() == castOther.getIdUsuaModiMen()) || (this
						.getIdUsuaModiMen() != null
						&& castOther.getIdUsuaModiMen() != null && this
						.getIdUsuaModiMen()
						.equals(castOther.getIdUsuaModiMen())))
				&& ((this.getFeUsuaModiMen() == castOther.getFeUsuaModiMen()) || (this
						.getFeUsuaModiMen() != null
						&& castOther.getFeUsuaModiMen() != null && this
						.getFeUsuaModiMen()
						.equals(castOther.getFeUsuaModiMen())))
				&& ((this.getDeTermModiMen() == castOther.getDeTermModiMen()) || (this
						.getDeTermModiMen() != null
						&& castOther.getDeTermModiMen() != null && this
						.getDeTermModiMen()
						.equals(castOther.getDeTermModiMen())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getIdMsjeMen() == null ? 0 : this.getIdMsjeMen().hashCode());
		result = 37
				* result
				+ (getDeCrtaMsjeMen() == null ? 0 : this.getDeCrtaMsjeMen()
						.hashCode());
		result = 37
				* result
				+ (getDeDetaMsjeMen() == null ? 0 : this.getDeDetaMsjeMen()
						.hashCode());
		result = 37
				* result
				+ (getTxAsntoMen() == null ? 0 : this.getTxAsntoMen()
						.hashCode());
		result = 37 * result
				+ (getTiEstdMen() == null ? 0 : this.getTiEstdMen().hashCode());
		result = 37
				* result
				+ (getIdUsuaCreaMen() == null ? 0 : this.getIdUsuaCreaMen()
						.hashCode());
		result = 37
				* result
				+ (getFeUsuaCreaMen() == null ? 0 : this.getFeUsuaCreaMen()
						.hashCode());
		result = 37
				* result
				+ (getDeTermCreaMen() == null ? 0 : this.getDeTermCreaMen()
						.hashCode());
		result = 37
				* result
				+ (getIdUsuaModiMen() == null ? 0 : this.getIdUsuaModiMen()
						.hashCode());
		result = 37
				* result
				+ (getFeUsuaModiMen() == null ? 0 : this.getFeUsuaModiMen()
						.hashCode());
		result = 37
				* result
				+ (getDeTermModiMen() == null ? 0 : this.getDeTermModiMen()
						.hashCode());
		return result;
	}

}